package com.dragon.modules.yuegou.model.product;

import com.dragon.modules.yuegou.entity.product.CoupApplyCheckRecordEntity;
import com.dragon.modules.yuegou.enums.product.CoupApplyCheckRecordStatus;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 商品券审核记录表模型类
 * 
 * @author pbuilder generated
 * @date 2021-05-11 16:55:17
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class CoupApplyCheckRecord extends CoupApplyCheckRecordEntity {

	@ApiModelProperty(value = "审核人名称", required = false)
	private String checkByName;

	public String getCheckByName() {
		return checkByName;
	}

	public void setCheckByName(String checkByName) {
		this.checkByName = checkByName;
	}

	/**
	 * 构造一个空商品券审核记录表模型对象
	 */
	public CoupApplyCheckRecord(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个商品券审核记录表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public CoupApplyCheckRecord(CoupApplyCheckRecordEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个商品券审核记录表模型对象
	 * 
	 * @param other 其它对象
	 */
	public CoupApplyCheckRecord(CoupApplyCheckRecord other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public CoupApplyCheckRecord id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getCoupApplyId() {
    	return coupApplyId;
    }

    /**
	 * 设置停车券申请ID
	 * 
	 * @param coupApplyId 停车券申请ID
	 * @return 当前对象
	 */
    public CoupApplyCheckRecord coupApplyId(String coupApplyId) {
    	this.coupApplyId = coupApplyId;
    	return this;
    }

	@Override
	public LocalDateTime getCheckTime() {
    	return checkTime;
    }

    /**
	 * 设置审核时间
	 * 
	 * @param checkTime 审核时间
	 * @return 当前对象
	 */
    public CoupApplyCheckRecord checkTime(LocalDateTime checkTime) {
    	this.checkTime = checkTime;
    	return this;
    }

	@Override
	public String getCheckReason() {
    	return checkReason;
    }

    /**
	 * 设置审核反馈
	 * 
	 * @param checkReason 审核反馈
	 * @return 当前对象
	 */
    public CoupApplyCheckRecord checkReason(String checkReason) {
    	this.checkReason = checkReason;
    	return this;
    }

	@Override
	public CoupApplyCheckRecordStatus getStatus() {
    	return status;
    }

    /**
	 * 设置[枚举]状态：2-审核通过-PASS、3-审核未通过-UNPASS
	 * 
	 * @param status [枚举]状态：2-审核通过-PASS、3-审核未通过-UNPASS
	 * @return 当前对象
	 */
    public CoupApplyCheckRecord status(CoupApplyCheckRecordStatus status) {
    	this.status = status;
    	return this;
    }

	@Override
	public String getMerchantId() {
    	return merchantId;
    }

    /**
	 * 设置商户ID
	 * 
	 * @param merchantId 商户ID
	 * @return 当前对象
	 */
    public CoupApplyCheckRecord merchantId(String merchantId) {
    	this.merchantId = merchantId;
    	return this;
    }

	@Override
	public Long getCheckedBy() {
    	return checkedBy;
    }

    /**
	 * 设置审核人
	 * 
	 * @param checkedBy 审核人
	 * @return 当前对象
	 */
    public CoupApplyCheckRecord checkedBy(Long checkedBy) {
    	this.checkedBy = checkedBy;
    	return this;
    }
}
